/**
* Appcelerator Titanium Platform
* Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
**/
// Code is stripped-down version of Tweetanium, to expose new structure paradigm

(function(){
	S.ui.createAboutView = function(){
		
		
		
		var scrollView = Ti.UI.createScrollView(S.combine({layout:'vertical'},$$.contentView));
		
		var imgView = Ti.UI.createImageView({image:'images/about.png', height:50});
		scrollView.add(imgView);

		var lblHeader = Titanium.UI.createLabel(S.combine({
		   text: "Peter Kent,\nMember of Parliament for Thornhill\nMinister of The Environment\n"
		},$$.aboutHeaderLabel));
		scrollView.add(lblHeader);
		
		var lblContent1 = Titanium.UI.createLabel(S.combine({
		   text: "Peter Kent was first elected to the House of Commons in 2008.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent1);
		
		var lblContent2 = Titanium.UI.createLabel(S.combine({
		   text: "Prior to his election to the House of Commons, Peter was a broadcast journalist having spent more than 40 years working as a writer, reporter, producer, anchor and senior executive in Canada, the United States and around the world.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent2);

		var lblContent3 = Titanium.UI.createLabel(S.combine({
		   text: "He covered stories that shaped the 20th century, including momentous events such as the Yom Kippur War, the Vietnam and Cambodian conflicts and recovery, the Ethiopian famine, the overthrow of Idi Amin, the fall of the Berlin Wall and the end of the Cold War.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent3);

		var lblContent4 = Titanium.UI.createLabel(S.combine({
		   text: "Following his election, Peter was sworn into Cabinet as Canada's first ever Minister of State of Foreign Affairs (Americas). In this role, he is responsible for spearheading the government's ambitious effort to further democracy, security and prosperity in the hemisphere. No stranger to the region, Peter covered stories throughout Central and South America as a correspondent for NBC during the 1980s. Peter won a number of awards over the course of career for his insightful reporting, including the prestigious Robert F. Kennedy Award.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent4);

		var lblContent5 = Titanium.UI.createLabel(S.combine({
		   text: "He is also a member of the Canadian Broadcast Hall of Fame.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent5);

		var lblContent6 = Titanium.UI.createLabel(S.combine({
		   text: "A passionate believer in community involvement, Peter actively supports a number of charitable organizations. He has served as a mentor with the Toronto Region Immigrant Employment Council and was on the Toronto cabinet of the Canadian Museum for Human Rights.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent6);

		var lblContent7 = Titanium.UI.createLabel(S.combine({
		   text: "He remains involved with the Toronto Conservatory of Music, Friends of Simon Wiesenthal Center, and the Sunnybrook Health Sciences Centre.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent7);

		var lblContent8 = Titanium.UI.createLabel(S.combine({
		   text: "Peter is married to Cilla.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent8);

		var lblContent9 = Titanium.UI.createLabel(S.combine({
		   text: "They have a daughter, Trilby and son-in-law, Daniel.\n"
		},$$.aboutContentLabel));
		scrollView.add(lblContent9);
		
		
		//var view = Ti.UI.createWebView(S.combine({url:'screens/about.html'},$$.contentView));

		
		/*var aboutCandidateText = Ti.UI.createLabel({
			text:L('about_candidate')
		});*/

		
		return scrollView;
	};
})();